<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<LCA.Community.DAL.Model.Message>" %>
<%@ Import Namespace="LCA.Community.DAL.Model" %>
<%@ Import Namespace="LCA.Community.Web.Controllers" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-main">
        <h2><img src="<%= Url.Content("~/Content/images/FinalDesign/Icons/mail24.png") %>" />Mensaje</h2>
        <div class="message">
            <span>De:</span> <%= Model.PartitionKey %><br />
            <span>Asunto:</span> <%= Model.GetSubject()%><br />
            <span style="display:block;">Mensaje:</span>
            <div class="subject">
                <%= Model.Body %>
            </div>
        </div>
    </div>

    <div class="content-right">
        <% if ((bool)ViewData["isuser"])
           {
               Html.RenderPartial("UserMenu", ViewData["user"] as User);
           }
           else
           {
               Html.RenderPartial("GroupMenu", ViewData["group"] as LCA.Community.DAL.Model.Group);
           } %>
    </div>
</asp:Content>
